package com.example.zaq.model;

import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * asp_log
 * @author 
 */
@Data
public class AspLog implements Serializable {
    private Integer date;//查询日期

    private Integer count;//总记录数

    private Integer page;//第几页

    /**
     * ID
     */
    private Integer lId;

    private Integer uId;

    /**
     * 操作表
     */
    private String lTable;

    /**
     * 操作日期
     */
    private Date lDate;

    /**
     * 操作时间
     */
    private Date lTime;

    /**
     * 具体操作：update、delete等
     */
    private String lDetail;

    /**
     * 备注
     */
    private String lText;

    private static final long serialVersionUID = 1L;

    public Integer getDate() {
        return date;
    }

    public void setDate(Integer date) {
        this.date = date;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getlId() {
        return lId;
    }

    public void setlId(Integer lId) {
        this.lId = lId;
    }

    public Integer getuId() {
        return uId;
    }

    public void setuId(Integer uId) {
        this.uId = uId;
    }

    public String getlTable() {
        return lTable;
    }

    public void setlTable(String lTable) {
        this.lTable = lTable;
    }

    public Date getlDate() {
        return lDate;
    }

    public void setlDate(Date lDate) {
        this.lDate = lDate;
    }

    public Date getlTime() {
        return lTime;
    }

    public void setlTime(Date lTime) {
        this.lTime = lTime;
    }

    public String getlDetail() {
        return lDetail;
    }

    public void setlDetail(String lDetail) {
        this.lDetail = lDetail;
    }

    public String getlText() {
        return lText;
    }

    public void setlText(String lText) {
        this.lText = lText;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        AspLog other = (AspLog) that;
        return (this.getlId() == null ? other.getlId() == null : this.getlId().equals(other.getlId()))
            && (this.getuId() == null ? other.getuId() == null : this.getuId().equals(other.getuId()))
            && (this.getlTable() == null ? other.getlTable() == null : this.getlTable().equals(other.getlTable()))
            && (this.getlDate() == null ? other.getlDate() == null : this.getlDate().equals(other.getlDate()))
            && (this.getlTime() == null ? other.getlTime() == null : this.getlTime().equals(other.getlTime()))
            && (this.getlDetail() == null ? other.getlDetail() == null : this.getlDetail().equals(other.getlDetail()))
            && (this.getlText() == null ? other.getlText() == null : this.getlText().equals(other.getlText()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getlId() == null) ? 0 : getlId().hashCode());
        result = prime * result + ((getuId() == null) ? 0 : getuId().hashCode());
        result = prime * result + ((getlTable() == null) ? 0 : getlTable().hashCode());
        result = prime * result + ((getlDate() == null) ? 0 : getlDate().hashCode());
        result = prime * result + ((getlTime() == null) ? 0 : getlTime().hashCode());
        result = prime * result + ((getlDetail() == null) ? 0 : getlDetail().hashCode());
        result = prime * result + ((getlText() == null) ? 0 : getlText().hashCode());
        return result;
    }

    @Override
    public String toString() {
        return "AspLog{" +
                "date=" + date +
                ", count=" + count +
                ", page=" + page +
                ", lId=" + lId +
                ", uId=" + uId +
                ", lTable='" + lTable + '\'' +
                ", lDate=" + lDate +
                ", lTime=" + lTime +
                ", lDetail='" + lDetail + '\'' +
                ", lText='" + lText + '\'' +
                '}';
    }
}